package com.iman.sumer.service.impl;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.iman.common.hibernate.TemplateQLService;
import com.iman.sumer.service.CodeNameService;
import com.iman.sumer.vo.CodeName;

@Service
public class CodeNameServiceImpl implements CodeNameService {

	@Inject
	TemplateQLService templateQLService;
 
	@Override
	public List<CodeName> getCodeNames(Map<String, Object> params) {
		List<CodeName> classes = templateQLService.findBySQLBeanQuery("codename-list", params, CodeName.class);
		return classes;
	}

}
